const { ProvideSharedPlugin } = require('../../../../dist/src');

module.exports = {
  mode: 'development',
  plugins: [
    new ProvideSharedPlugin({
      shareScope: 'eagerOverrideNonEager',
      provides: {
        common: {
          shareKey: 'common',
          eager: true,
        },
      },
    }),
    new ProvideSharedPlugin({
      shareScope: 'nonEagerDontOverrideEager',
      provides: {
        uncommon: {
          shareKey: 'uncommon',
        },
      },
    }),
    new ProvideSharedPlugin({
      shareScope: 'newerNonEager',
      provides: {
        uncommon: {
          shareKey: 'uncommon',
        },
      },
    }),
    new ProvideSharedPlugin({
      shareScope: 'newerEager',
      provides: {
        common: {
          shareKey: 'common',
          eager: true,
        },
      },
    }),
  ],
};
